package com.ylr.jwt.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-04-26 15:18:27
 * className: JwtResultEnum Jwt异常结果枚举类
 * version: 1.0
 * description:
 */
@Getter
@AllArgsConstructor
public enum JwtResultEnum {

    /*
        请求失败
     */
    LOSE(400, "令牌携带的数据为空，请确认"),
    SIGNATURE(40301, "令牌信息被修改"),
    MALFORMED(40301, "传入不正确令牌信息"),
    EXPIRE(40302, "令牌签名到期"),
    /*
        系统异常
     */
    PROP_LOSE(500, "服务器开小差了，请稍后重试")
    ;

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 回复消息
     */
    private final String msg;

}
